package com.liuwei.msmall.order.feign;

import com.liuwei.msmall.common.utils.R;
import com.liuwei.msmall.order.vo.OrderConfirmItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @Classname CartFeignService
 * @Description TODO
 * @Date 2020/7/7 23:04
 * @Created by 刘
 */
@FeignClient("msmall-cart-service")
public interface CartFeignService {

    @GetMapping("/getCurrentUserCartItem")
    List<OrderConfirmItemVo> getCurrentUserCartItem();

    @PostMapping("/clearCart")
    R clearCart(List<Long> skuIds);

}
